var result = {
    name: "",
    code: "",
}


function sampleResult() {
    this.name = "";
    this.responseCode = "";
}

sampleResult.prototype = {
    constructor: sampleResult,
    toString: function () {
        return `name:${this.name},responseCode:${this.responseCode}`
    },
    getResponseCode: function () {
        return this.responseCode
    },
    setName: function (_name) {
        this.name = _name;
    },
    setResponseCode: function (_responseCode) {
        this.responseCode = _responseCode;
    },
    getName: function () {
        return this.name;
    }

}
module.exports = sampleResult


var resultOne = new sampleResult();
var resultTwo = new sampleResult();
resultOne.setName("first")
resultOne.setResponseCode(200)
resultTwo.setName("second")
resultTwo.setResponseCode(301)
var map = new Map();
map.set(resultOne.getName(), resultOne)
map.set(resultTwo.getName(), resultTwo)

console.log(resultOne.getName(), resultOne.getResponseCode())
console.log(resultTwo.getName(), resultTwo.getResponseCode())

console.log(map)
console.log()
